package com.reader.cms.entity.sys;

import java.io.Serializable;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

import org.springframework.format.annotation.DateTimeFormat;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * @author gumenghao
 * @@description
 * @date 2018-10-25
 */
@TableName("reader_tags")
public class ReaderTags extends Model<ReaderTags> {

    private static final long serialVersionUID = 1L;


    /**
     * ID
     */


    private Integer id;

    /**
     * 多级分类，目前标签为二级为类
     */


    private Integer pid;

    /**
     * 标签名称
     */


    private String name;


    private Integer enable;


    @TableField("del_flag")

    private Integer delFlag;


    @TableField("insert_dt")

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date insertDt;


    @TableField("insert_user_id")

    private Integer insertUserId;


    @TableField("updt_dt")

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updtDt;


    @TableField("updt_user_id")

    private Integer updtUserId;

    @TableField(exist = false)
    private String firstNM;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Date getInsertDt() {
        return insertDt;
    }

    public void setInsertDt(Date insertDt) {
        this.insertDt = insertDt;
    }

    public Integer getInsertUserId() {
        return insertUserId;
    }

    public void setInsertUserId(Integer insertUserId) {
        this.insertUserId = insertUserId;
    }

    public Date getUpdtDt() {
        return updtDt;
    }

    public void setUpdtDt(Date updtDt) {
        this.updtDt = updtDt;
    }

    public Integer getUpdtUserId() {
        return updtUserId;
    }

    public void setUpdtUserId(Integer updtUserId) {
        this.updtUserId = updtUserId;
    }

    public String getFirstNM() {
        return firstNM;
    }

    public void setFirstNM(String firstNM) {
        this.firstNM = firstNM;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ReaderTags{" +
                ", id=" + id +
                ", pid=" + pid +
                ", name=" + name +
                ", enable=" + enable +
                ", delFlag=" + delFlag +
                ", insertDt=" + insertDt +
                ", insertUserId=" + insertUserId +
                ", updtDt=" + updtDt +
                ", updtUserId=" + updtUserId +
                "}";
    }
}